package com.bstek.urule.console;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("urule_operation_log")
public class UruleOperationLogEntity {

    @TableId
    private long id;
    //操作员
    private String operatorName;
    //操作类型
    private OperationType operationType;
    //操作日志
    private String operationLog;
    //修改前文件内容
    private String fileBeforeModification;
    //修改后文件内容
    private String fileAfterModification;
    //服务器ip
    private String serverIp;
    private Date createTime;
    private Date updateTime;


    public enum OperationType {
        CREATE,
        UPDATE,
        DELETE
    }

}
